<template>
  <view class="topView">
    <view class="centerBox">
      <view class="title_box">
        <view class="title">活动登记地址</view>
        <view class="close" @click="closeDialog">
          <image src="https://100000063-1252208446.file.myqcloud.com/images/macallan-remvp/X.png"></image>
        </view>
      </view>
      <view class="content">
        <view class="addressDetails">
          <view class="user_name">
            <image class="location_icon" src="https://100000063-1252208446.file.myqcloud.com/images/macallan-remvp/location_icon.png"></image>
            <view class="text">{{ address.receiverName }}</view>
          </view>
          <view class="user_phone color_font">
            {{ address.receiverMobile }}
          </view>
          <view class="active_address color_font">{{ address.receiverState }} {{ address.receiverCity }}
            {{ address.receiverDistrict }} {{ address.receiverTown }} {{ address.receiverAddress }}
          </view>
        </view>
        <view class="tipBox">
          <view class="circle">●</view>
          <view class="text_style">请仔细核对您的收货地址信息，参与成功后的购买资格仅对该登记地址有效。</view>
        </view>
        <view class="tipBox">
          <view class="circle">●</view>
          <view class="text_style">
            提交抽签购活动的登记申请并不代表获得购买资格，也不构成您和我们订立相关商品购买合同的要约或者承诺，您的登记申请提交后不能确保一定能够成功通过并获取购买资格。
          </view>
        </view>
      </view>
      <view class="btn_box">
        <view class="btn_submit"  @click="checkIn">确认登记</view>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    data() {
      return {

      }
    },
    props: {
      address: {
        type: Object
      }
    },
    methods: {
      checkIn() {
        this.$emit('checkIn')
      },
      closeDialog(){
        this.$emit('closeDialog')
      }
    }
  }
</script>

<style lang="scss">
  .topView {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    font-family: FrankNew-Regular,NotoSansSC-Regular;
    .addressDetails {
      width: 100%;
      // height: 252rpx;
      background-color: #fafafa;
      padding: 32rpx 0;
      margin-bottom: 46rpx;
      .user_name{
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0 32rpx;
        .location_icon{
          width: 48rpx;
          height: 48rpx;
          margin-right: 16rpx;
        }
        .text{
          font-size: 28rpx;
          font-family: FrankNew-Medium,NotoSansSC-Medium;
          line-height: 48rpx;
        }
      }
      .user_phone{
        padding: 0 32rpx 0 96rpx;
        margin-top: 44rpx;
      }
      .active_address{
        padding: 0 32rpx 0 96rpx;
      }
      .color_font{
        color: #757575;
        font-size: 28rpx;
      }
    }

    .centerBox {
      width: 100%;
      background-color: #fff;
      border-radius: 16rpx 16rpx 0px 0px;
      position: absolute;
      left: 0;
      bottom: 0;
      // height: 750rpx;
      overflow: hidden;
      padding-bottom: 64rpx;
      .title_box{
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 80rpx;
        margin-top: 40rpx;
        padding: 0 24rpx 0 48rpx;
        .title {
          line-height: 80rpx;
          font-size: 36rpx;
          background-color: #fff;
          color: #000;
          font-family: NotoSansSC-Medium;
        }
        .close{
          width: 80rpx;
          height: 80rpx;
          display: flex;
          align-items: center;
          justify-content: center;
          image{
            width: 39.77%;
            height: 39.77%;
          }
        }
      }
      .content {
        padding: 16rpx 48rpx 94rpx 48rpx;
        overflow: auto;
        text-align: justify;
        .tipBox {
          display: flex;
          align-items: flex-start;
          justify-content: flex-start;
          .circle {
            width: 42rpx;
            height: 48rpx;
            flex-shrink: 0;
            text-align: center;
            font-size: 10rpx;
            color: #000;
            line-height: 48rpx;
          }
          .text_style{
            color: #000;
            font-size: 28rpx;
            line-height: 48rpx;
          }
        }
      }
      .btn_box{
        padding: 0 48rpx;
      }
      .btn_submit {
        color: #fff;
        background-color: #000;
        height: 80rpx;
        line-height: 80rpx;
        border-radius: 48rpx 16rpx 48rpx 48rpx;
        font-size: 28rpx;
        font-family: NotoSansSC-Medium;
        text-align: center;
      }
    }
  }
</style>
